﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true"
    CodeFile="AddMovie.aspx.cs" Inherits="Admin_Default2" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="top-bar select-bar">
        <a href="AddMovieLink.aspx" class="button">Add Link</a> <a href="AddMovieScreenShots.aspx"
            class="button">Add Screen</a>
        <h1>
            <b>Add Movie </b>
        </h1>
        <asp:Label ID="lblmsg" Font-Bold="true" Width="100%" runat="server" BackColor="Red"
            ForeColor="White" EnableTheming="False"></asp:Label>
    </div>
    <br />
    <div>
        <table width="150%" cellpadding="3px">
            <tr>
                <td>
                    <asp:Label ID="lblSelectCategory" Font-Bold="true" runat="server" Text="Select Category: "></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="ddlCategory" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlCategory_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Label ID="lblSubCategory" Font-Bold="true" runat="server" Text="Select Sub Category: "></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="ddlSubCategory" Width="80%" runat="server" OnSelectedIndexChanged="ddlSubCategory_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblServer" Font-Bold="true" runat="server" Text="Select Server: "></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="ddlServer" runat="server">
                        <asp:ListItem Text="------Select Server------" Value="0"></asp:ListItem>
                        <asp:ListItem Text="Mediafire" Value="1"></asp:ListItem>
                        <asp:ListItem Text="Torrent" Value="2"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Label ID="lblMovieName" Font-Bold="true" runat="server" Text="Movie Name: "></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtMovieName" runat="server" Width="50%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblMovieYear" Font-Bold="true" runat="server" Text="Movie Year: "></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtMovieYear" runat="server" Width="50%"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="lblMovieSize" Font-Bold="true" runat="server" Text="Movie Size: "></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtMovieSize" runat="server" Width="50%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblMovieGenre" Font-Bold="true" runat="server" Text="Movie Genre: "></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtMovieGenre" runat="server" Width="50%"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="lblMovieOwner" Font-Bold="true" runat="server" Text="Owner: "></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtMovieOwner" runat="server" Width="50%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblMovieCover" Font-Bold="true" runat="server" Text="Movie Cover: "></asp:Label>
                </td>
                <td >
                    <asp:TextBox ID="FileUploadMovieCover" runat="server" ></asp:TextBox>
                    <%--<asp:FileUpload ID="FileUploadMovieCover" runat="server" />--%>
                </td>
                 <td>
                    <asp:Label ID="lblMoviePrint" Font-Bold="true" runat="server" Text="Movie Print: "></asp:Label>
                </td>
                <td >
                    <asp:TextBox ID="txtMoviePrint" runat="server" ></asp:TextBox>
                    <%--<asp:FileUpload ID="FileUploadMovieCover" runat="server" />--%>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblMovieDescription" Font-Bold="true" runat="server" Text="Movie Description: "></asp:Label>
                </td>
                <td colspan="3">
                    <FCKeditorV2:FCKeditor ID="FCKeditor2" runat="server" BasePath="~/fckeditor/" Width="100%">
                    </FCKeditorV2:FCKeditor>
                   <%-- <asp:TextBox ID="txtMovieDescription" Visible="false" TextMode="MultiLine" Height="200%"
                        runat="server" Width="80%"></asp:TextBox>--%>
                   
                </td>
            </tr>
            <tr>
                <td align="right" colspan="4">
                    <asp:Button ID="btnAddMovie" Font-Bold="true" Width="15%" OnClientClick="return ValidateAddMovie('ddlCategory','ddlSubCategory','ddlServer','txtMovieName','txtMovieYear','txtMovieSize','txtMovieGenre','txtMovieOwner','FCKeditor2','FileUploadMovieCover')"
                        Text="Add" runat="server" OnClick="btnAddMovie_Click" />
                </td>
            </tr>
        </table>
    </div>
    <br />
    <div class="table">
        <asp:GridView ID="grdMovie" runat="server" AutoGenerateColumns="false" ShowHeader="true">
            <Columns>
                <asp:TemplateField HeaderText="ID">
                    <ItemTemplate>
                        <asp:Label ID="lblGameID" Text="1" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Game Name">
                    <ItemTemplate>
                        <asp:Label ID="lblName" tex="2011" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Game Cover">
                    <ItemTemplate>
                        <asp:Label ID="lblCover" tex="Movie" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Game Owner">
                    <ItemTemplate>
                        <asp:Label ID="lblOwner" tex="2011" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
               
                <asp:CommandField ShowEditButton="True" />
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
